<div class="page">
    {{#unless page.isFirst}}
    <a href="{{page.path}}?{{page.first}}" class="first">First</a>
    <a href="{{page.path}}?{{page.prev}}" class="prev">&lt;&lt;Prev</a>
    {{/unless}}

    {{#each page.list}}
        {{#if isCurr}}
            <span>{{num}}</span>
        {{else}}
            <a href="{{../page.path}}?{{query}}">{{num}}</a>
        {{/if}}
    {{/each}}

    {{#unless page.isLast}}
    <a href="{{page.path}}?{{page.next}}" class="next">Next&gt;&gt;</a>
    <a href="{{page.path}}?{{page.last}}" class="last">Last</a>
    {{/unless}}

    <span>&emsp;Page: {{page.curr}} / {{page.total}}</span>
</div>